package org.example.order.infrastructure.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.order.infrastructure.po.OrderDetailPO;

import java.util.List;

@Mapper
public interface OrderDetailDao {
    // @Select("select id,product_id as productId,price,quantity from eg_order_detail where order_id=#{orderId} and tenant_id=#{tenantId}")
    @Select("select id,product_id,price,quantity from eg_order_detail where order_id=#{orderId} and tenant_id=#{tenantId}")
    List<OrderDetailPO> findOrderDetailsByOrderId(@Param("orderId") String orderId, @Param("tenantId") String tenantId);
}